const specialMomentService = {
  //Define the basic content that should display for "Special Moment".
  specialMomentQueryRequest : {
    originCollection : "SpecialMoment",
    fromCollectionsLookUpParmas : [
                              {
                                name : "Article",
                                let : {
                                  specMomentID : '$specMomentID'
                                },
                                pipeline : [
                                  {
                                    operator : 'eq',
                                    fieldName : '$specMomentID',
                                    definedName : '$$specMomentID'
                                  },                                 
                                ],
                                project : {
                                  _id: 0,
                                  articleID: 1
                                },
                                as : 'SpecialMoment2Article',
                              },
                            ],
    matchCondition : {
      matchFieldName : 'specMomentID',
      //operator : 'lte',
      operator : 'gt',
      value : 4
      // operator : 'in',
      // value : [5,6,7,8]
    }
},

  async aggregatedSpecialMoment() {
      return wx.cloud.callFunction({
        name : "AggregatedLookUpQuery",
        data : {
          queryRequest : this.specialMomentQueryRequest
        }
      })
      .then(res => {
        return res.result;
      });
    },
}

export {specialMomentService}